/**
 * 
 */
package br.com.ufrn.aipetro.ga.persist.interfaces;

import java.beans.PropertyChangeListener;
import java.io.Serializable;
import java.util.List;

/**
 * 
 * @author Andre
 *
 * @param <T>
 */
public abstract class AbstractDao<T> {

	protected BasicDao<T> basicDao;
	
	public AbstractDao() {
	}
	
	public void delete(T entity) {
		basicDao.delete(entity);
	}
	
	public void insert(T entity) {
		basicDao.insert(entity);
	}
	
	public T search(Serializable id) {
		return basicDao.search(id);
	}
	
	public List<T> searchAll() {
		return basicDao.searchAll();
	}
	
	public List<T> searchByExample(T example) {
		return basicDao.searchByExample(example);
	}
	
	
	public void update(T entity) {
		basicDao.update(entity);
	}
	
}
